import flixel.FlxObject;
import flixel.group.FlxTypedGroup;

class MessageRegion extends FlxObject{
	public var message(default, null): String;
	public static var messageRegions: FlxTypedGroup<MessageRegion> = new FlxTypedGroup<MessageRegion>();

	public function new(X: Float, Y: Float, Width: Int, Height: Int, Message: String)
	{
		super(X, Y);
		width = Width;
		height = Height;
		message = Message;
		messageRegions.add(this);
	}

	public function show()
	{
		MessageBoard.showMessage(message);
		kill();
	}
}